From 078902e8b010d6d70c8d95f5522bfcf1f8a1dfa6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 5 Jan 2017 13:11:02 +0100 Subject: [PATCH] gsk: Have variables for resources Instead of relying on --generate-dependencies and the resource file, actually list the resources in Make variables. Fixes make not building new shaders because they're not inside the resource file. --- gsk/Makefile.am | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gsk/Makefile.am b/gsk/Makefile.am index b92b60bdf9..21058c098c 100644 --- a/gsk/Makefile.am +++ b/gsk/Makefile.am @@ -55,6 +55,10 @@ gsk_private_vulkan_source_c = \ gskvulkanrenderer.c \ gskvulkanrenderpass.c \ gskvulkanshader.c +gsk_private_vulkan_shaders = \ + resources/vulkan/*.glsl +gsk_private_vulkan_compiled_shaders = \ + $(gsk_private_vulkan_shaders:.glsl=.spv) endif gsk_public_source_h = \ @@ -79,6 +83,8 @@ gsk_private_source_h = \ gskroundedrectprivate.h \ gskshaderbuilderprivate.h \ gsktextureprivate.h +gsk_private_source_shaders = \ + resources/glsl/*.glsl gsk_public_source_c = \ gskrenderer.c \ gskrendernode.c \ @@ -138,15 +144,15 @@ gsk.resources.xml: Makefile.am $(AM_V_GEN) echo "" > $@; \ echo "" >> $@; \ echo " " >> $@; \ - for f in $(top_srcdir)/gsk/resources/glsl/*; do \ + for f in $(gsk_private_source_shaders); do \ n=`basename $$f`; \ echo " resources/glsl/$$n" >> $@; \ done; \ - for f in $(top_srcdir)/gsk/resources/vulkan/*.spv; do \ + for f in $(gsk_private_vulkan_compiled_shaders); do \ n=`basename $$f`; \ echo " resources/vulkan/$$n" >> $@; \ done; \ - for f in $(top_srcdir)/gsk/resources/vulkan/*.glsl; do \ + for f in $(gsk_private_vulkan_shaders); do \ n=`basename $$f`; \ echo " resources/vulkan/$$n" >> $@; \ done; \ -- 2.30.2